export default {
  'GET /api/request/jwt': (req: any, res: any) => {
    if (req.get('Authorization') !== 'Bearer Mock JWT') {
      res.status(500).end('Authorization not legal');
    } else {
      res.end();
    }
  },
  'GET /api/request/noAuth': (req: any, res: any) => {
    res.status(401).end('这是一个异常');
  },
  'GET /api/request/normal': (req: any, res: any) => {
    res.end();
  },
  'GET /api/request/redirect': (req: any, res: any) => {
    res.status(302);
    res.setHeader("Location", "/");
    res.end();
  },
};
